﻿CREATE TABLE [dbo].[GenNoteContabile] (
    [IDNotaContabila] INT             IDENTITY (1, 1) NOT NULL,
    [IDTipDocument]   SMALLINT        NOT NULL,
    [ContDebit]       [dbo].[TipCont] NOT NULL,
    [ContCredit]      [dbo].[TipCont] NOT NULL,
    [Valoare]         VARCHAR (50)    NOT NULL,
    CONSTRAINT [PK_GenNoteContabile] PRIMARY KEY CLUSTERED ([IDNotaContabila] ASC),
    CONSTRAINT [FK_GenNoteContabile_TipDocument] FOREIGN KEY ([IDTipDocument]) REFERENCES [dbo].[TipDocument] ([IDTipDocument])
);

